//
//  StatusNormalCell.swift
//  01MicroBlog
//
//  Created by Apple on 15/8/5.
//  Copyright © 2015年 heima. All rights reserved.
//

import UIKit

class StatusNormalCell: StatusCell {

   
    override func setUpUI() {
        super.setUpUI()
        
        // 先定义一个给定的图片约束，后续再修改
        let cons = pictureView!.ff_AlignVertical(type: ff_AlignType.BottomLeft, referView: contentLabel, size: CGSize(width: 290, height: 290), offset: CGPoint(x: 0, y: margin))
        
        // 设置图片宽高的约束，保证图片可见
        pictureWidthCons = pictureView!.ff_Constraint(cons, attribute: NSLayoutAttribute.Width)
        pictureHeightCons = pictureView!.ff_Constraint(cons, attribute: NSLayoutAttribute.Height)
        pictureTopCons = pictureView?.ff_Constraint(cons, attribute: NSLayoutAttribute.Top)
    }
}
